package com.itheima.userservice.elasticsearch;

import com.itheima.userservice.bean.Hotel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/es/use")
public class HotelUseController {

    @Autowired
    private HotelUseService hotelUseServiceImpl;

    @PostMapping()
    public void select(){
        List<Hotel> list =  hotelUseServiceImpl.selectList();

    }
}
